package cn.tedu.florist.mapper;


import cn.tedu.florist.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from user where phone=#{phone}")
    User select(String phone);

    @Insert("insert into user values(null,#{phone},#{password})")
    void insert(User user);

    @Select("select password from user where phone=#{phone}")
    User selectByPhone(String phone);
}
